package user

import (
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/schema"
)

const TableNameUserPartnerReward = "user_partner_reward"

// UserPartnerReward 用户合伙人奖励
type UserPartnerReward struct {
	schema.Model
	UserId         int64   `gorm:"type:bigint;not null;comment:用户id"`
	InviteCode     string  `gorm:"type:varchar(32);not null;comment:邀请码"`
	SubordinateID  int64   `gorm:"type:bigint;not null;comment:直属下级id"`
	RechargeAmount float64 `gorm:"type:decimal(10,4);not null;comment:充值金额"`
	RewardAmount   float64 `gorm:"type:decimal(10,4);not null;comment:奖励金额"`
	RegisterTime   int64   `gorm:"type:bigint;not null;comment:注册时间"`
	RechargeTime   int64   `gorm:"type:bigint;not null;comment:充值时间"`
}

func (*UserPartnerReward) TableName() string {
	return TableNameUserPartnerReward
}
